package com.tigerhhzz.wuaimai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tigerhhzz.wuaimai.dto.OrdersDto;
import com.tigerhhzz.wuaimai.dto.PageQueryDto;
import com.tigerhhzz.wuaimai.entity.Orders;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface OrderService extends IService<Orders> {

    /**
     * 用户下单
     * @param orders
     */
    public void submit(Orders orders);

    /**
     * 分页查询订单
     * @param page
     * @param pageSize
     * @return
     */
    Page<OrdersDto> userPage(Integer page, Integer pageSize);

    /**
     * 分页多条件查询
     * @param pageQueryDto
     * @return
     */
    Page<Orders> queryPage(PageQueryDto pageQueryDto);


}
